package org.example.wikwok.common;

import lombok.Data;
import lombok.Getter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;


@Getter
@Component
@Data
public class JwtProperties {

    /**
     * 用户生成jwt令牌相关配置
     */
    private static String userSecretKey="wsjwsj";
    //2个小时
    private static long userTtl=7200000;
    private static String userTokenName="user-token";


    public static String getUserSecretKey() {
        return userSecretKey;
    }

    public static long getUserTtl() {
        return userTtl;
    }
}

